webpackJsonp([7],{

/***/ 204:
/***/ (function(module, exports, __webpack_require__) {


/* styles */
__webpack_require__(258)

var Component = __webpack_require__(7)(
  /* script */
  __webpack_require__(260),
  /* template */
  __webpack_require__(261),
  /* scopeId */
  "data-v-00303cc8",
  /* cssModules */
  null
)

module.exports = Component.exports


/***/ }),

/***/ 258:
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(259);
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var update = __webpack_require__(6)("85b514cc", content, true);

/***/ }),

/***/ 259:
/***/ (function(module, exports, __webpack_require__) {

exports = module.exports = __webpack_require__(2)(undefined);
// imports


// module
exports.push([module.i, ".mint-swipe[data-v-00303cc8]{height:5.333333rem}.mint-swipe-item[data-v-00303cc8],.mint-swipe-item img[data-v-00303cc8]{width:100%;height:5.333333rem}.mint-swipe-indicator[data-v-00303cc8]{width:2.666667rem;height:5.333333rem}.title[data-v-00303cc8]{height:2.186667rem;padding:.266667rem .32rem 0;background-color:#fff;margin-bottom:.026667rem;overflow:hidden}.txt_1[data-v-00303cc8]{width:9.36rem;height:.96rem;font-size:.426667rem;line-height:.48rem;color:\"#535353\";overflow:hidden}.title_f[data-v-00303cc8]{height:.853333rem;line-height:.853333rem;margin-top:.106667rem}.txt_2[data-v-00303cc8]{color:#e53620;font-size:.32rem}.txt_3[data-v-00303cc8]{font-size:.533333rem}.txt_4[data-v-00303cc8]{font-size:.373333rem;color:#7d7d7d}.address[data-v-00303cc8]{height:1.2rem;line-height:1.2rem;background-color:#fff;padding:0 .32rem;margin-bottom:.026667rem}.address img[data-v-00303cc8]{width:.533333rem;height:.533333rem;vertical-align:middle}.txt_5[data-v-00303cc8]{font-size:.426667rem;font-weight:800;color:#535353;vertical-align:middle}.txt_8[data-v-00303cc8]{width:4.533333rem;font-size:.32rem;color:\"#7d7d7d\";overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.choice[data-v-00303cc8]{font-size:.373333rem;color:#7d7d7d}.distribution[data-v-00303cc8]{height:.933333rem;line-height:.933333rem;padding:0 .373333rem;background-color:#fff;margin-bottom:.213333rem}.txt_6[data-v-00303cc8]{width:.213333rem;height:.213333rem;display:inline-block;border-radius:50%;background-color:#fb3636;margin-top:.373333rem;margin-right:.106667rem}.txt_7[data-v-00303cc8]{font-size:.32rem;color:#7d7d7d}.details[data-v-00303cc8]{height:1.12rem;line-height:1.12rem;font-size:.426667rem;padding:0 .373333rem;color:#535353;background-color:#fff;margin-bottom:.026667rem}.detailsInfo[data-v-00303cc8]{height:3.786667rem;background-color:#fff}", ""]);

// exports


/***/ }),

/***/ 260:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__kids_common_js__ = __webpack_require__(136);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__kids_sessionSg_js__ = __webpack_require__(9);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//



/* harmony default export */ __webpack_exports__["default"] = ({
    data() {
        return {
            popupVisible: false,
            imgs: '', //轮播图数据
            info: '', //商品详情数据
            id: '', //商品id
            token: '', //token值
            address: '', //查询地址数据
            slots: [{
                flex: 1,
                values: ['2015-01', '2015-02', '2015-03', '2015-04', '2015-05', '2015-06'],
                className: 'slot1',
                textAlign: 'right'
            }, {
                divider: true,
                content: '-',
                className: 'slot2'
            }, {
                flex: 1,
                values: ['2015-01', '2015-02', '2015-03', '2015-04', '2015-05', '2015-06'],
                className: 'slot3',
                textAlign: 'left'
            }]
        };
    },
    created() {
        //获取商品 id
        this.id = this.$route.params.id;
        //获取token值
        var tokenVal = Object(__WEBPACK_IMPORTED_MODULE_1__kids_sessionSg_js__["a" /* getSItem */])('token');
        this.token = tokenVal;
        if (tokenVal) {
            this.addressInfo();
        } else {
            this.address = "";
        }
        //执行方法
        this.commodityInfo();
    },
    methods: {
        //  商品详情数据,需要传参数
        pop() {
            this.popupVisible = true;
        },
        commodityInfo() {
            var url = __WEBPACK_IMPORTED_MODULE_0__kids_common_js__["a" /* default */].apidomain + '/api/noauth/commodity/getCommodityBySku';
            this.$http.post(url, {}, { params: { 'skuId': this.id } }).then(function (res) {
                // console.log(res.body);
                var banner = res.body.result.banner;
                //把字符串形式的数据转换为json
                this.imgs = JSON.parse(banner);
                this.info = res.body.result;
            });
        },

        // 地址数据查询
        addressInfo() {
            var url = __WEBPACK_IMPORTED_MODULE_0__kids_common_js__["a" /* default */].apidomain + '/api/address/getList';
            this.$http.post(url, this.token, { emulateJSON: true }).then(function (res) {
                console.log(res.body.result);
                this.address = res.body.result[0];
            });
        },
        onValuesChange(picker, values) {
            if (values[0] > values[1]) {
                picker.setSlotValue(1, values[0]);
            }
        }
    }
});

/***/ }),

/***/ 261:
/***/ (function(module, exports, __webpack_require__) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    attrs: {
      "id": "tmpl"
    }
  }, [_c('mt-swipe', {
    attrs: {
      "auto": 4000
    }
  }, _vm._l((_vm.imgs), function(item) {
    return _c('mt-swipe-item', [_c('img', {
      attrs: {
        "src": item
      }
    })])
  })), _vm._v(" "), _c('div', {
    staticClass: "title"
  }, [_c('div', {
    staticClass: "txt_1 mui-ellipsis-2"
  }, [_vm._v("充电宝超大容量  快充  数据线  充电器安达可乐啊发索拉卡克里夫案件来看的风景阿斯达123充电器安达可乐啊发索拉卡克里夫案件来看的风景阿斯达123")]), _vm._v(" "), _c('div', {
    staticClass: "title_f "
  }, [(_vm.info.discountPrice) ? _c('span', {
    staticClass: "txt_2 "
  }, [_vm._v("￥"), _c('span', {
    staticClass: "txt_3"
  }, [_vm._v(_vm._s(_vm.info.discountPrice))])]) : _vm._e(), _vm._v(" "), (_vm.info.discountPrice) ? _c('del', {
    staticClass: "txt_4"
  }, [_vm._v("￥" + _vm._s(_vm.info.sellPrice))]) : _vm._e(), _vm._v(" "), (!_vm.info.discountPrice) ? _c('span', {
    staticClass: "txt_2"
  }, [_vm._v("￥"), _c('span', {
    staticClass: "txt_3"
  }, [_vm._v(_vm._s(_vm.info.sellPrice))])]) : _vm._e()])]), _vm._v(" "), _c('div', {
    staticClass: "address"
  }, [_c('img', {
    attrs: {
      "src": __webpack_require__(262)
    }
  }), _vm._v(" "), _c('span', {
    staticClass: "txt_5"
  }, [_vm._v("配送至 ")]), _vm._v(" "), _c('a', {
    staticClass: "choice r",
    attrs: {
      "href": "#"
    },
    on: {
      "click": _vm.pop
    }
  }, [_vm._v("\n              请选择收货地址\n          ")]), _vm._v(" "), _c('span', {
    staticClass: "txt_8 r"
  }, [_vm._v(_vm._s(_vm.address.showAddress))])]), _vm._v(" "), _vm._m(0), _vm._v(" "), _c('div', {
    staticClass: "details"
  }, [_vm._v("产品详情")]), _vm._v(" "), _c('div', {
    staticClass: "detailsInfo"
  }), _vm._v(" "), _c('mt-popup', {
    attrs: {
      "position": "bottom"
    },
    model: {
      value: (_vm.popupVisible),
      callback: function($$v) {
        _vm.popupVisible = $$v
      },
      expression: "popupVisible"
    }
  }, [_c('mt-picker', {
    attrs: {
      "slots": _vm.slots
    },
    on: {
      "change": _vm.onValuesChange
    }
  })], 1)], 1)
},staticRenderFns: [function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    staticClass: "distribution"
  }, [_c('span', {
    staticClass: "txt_7 r"
  }, [_vm._v("20kg以内满99包邮")]), _vm._v(" "), _c('span', {
    staticClass: "txt_6 r"
  })])
}]}

/***/ }),

/***/ 262:
/***/ (function(module, exports) {

module.exports = ""

/***/ })

});